package com.itheima.health.mapper;

import com.itheima.health.common.PageParam;
import com.itheima.health.model.dtos.AddSetMealDto;
import com.itheima.health.model.dtos.UpdateSetMealDto;
import com.itheima.health.model.pojos.QueryString;
import com.itheima.health.model.pojos.Setmeal;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SetMealMapper {

    List<Setmeal> getSetMealPage(QueryString queryString);

    void insertSetMeal(Setmeal setmeal);

    void insertCheckGroupsWithSetMealId(@Param("setmealId") Integer setmealId,@Param("ids") List<Integer> ids);

    Setmeal getSetMealById(Integer id);

    void deleteCheckGroupIdsBySetMealId(Integer setmealId);

    void updateSetMealById(UpdateSetMealDto dto);

    void deleteSetMealById(Integer id);
}
